Optimal. Leaf size=79 \[ \frac {A \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {(2 A+3 C) \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {17, 3091, 3852,
8} \begin {gather*} \frac {(2 A+3 C) \sin (c+d x) \sqrt {b \cos (c+d x)}}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {A \sin (c+d x) \sqrt {b \cos (c+d x)}}{3 d \cos ^{\frac {7}{2}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 17
Rule 3091
Rule 3852
Rubi steps
\begin {align*} \int \frac {\sqrt {b \cos (c+d x)} \left (A+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx &=\frac {\sqrt {b \cos (c+d x)} \int \left (A+C \cos ^2(c+d x)\right ) \sec ^4(c+d x) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {A \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {\left ((2 A+3 C) \sqrt {b \cos (c+d x)}\right ) \int \sec ^2(c+d x) \, dx}{3 \sqrt {\cos (c+d x)}}\\ &=\frac {A \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d \cos ^{\frac {7}{2}}(c+d x)}-\frac {\left ((2 A+3 C) \sqrt {b \cos (c+d x)}\right ) \text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{3 d \sqrt {\cos (c+d x)}}\\ &=\frac {A \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {(2 A+3 C) \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 51, normalized size = 0.65 \begin {gather*} \frac {\sqrt {b \cos (c+d x)} \sin (c+d x) \left (3 (A+C)+A \tan ^2(c+d x)\right )}{3 d \cos ^{\frac {3}{2}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.30, size = 54, normalized size = 0.68
method | result | size |
default | \(\frac {\left (2 A \left (\cos ^{2}\left (d x +c \right )\right )+3 C \left (\cos ^{2}\left (d x +c \right )\right )+A \right ) \sin \left (d x +c \right ) \sqrt {b \cos \left (d x +c \right )}}{3 d \cos \left (d x +c \right )^{\frac {7}{2}}}\) | \(54\) |
risch | \(\frac {2 i \sqrt {b \cos \left (d x +c \right )}\, \left (3 C \,{\mathrm e}^{4 i \left (d x +c \right )}+6 A \,{\mathrm e}^{2 i \left (d x +c \right )}+6 C \,{\mathrm e}^{2 i \left (d x +c \right )}+2 A +3 C \right )}{3 \sqrt {\cos \left (d x +c \right )}\, d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{3}}\) | \(81\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 350 vs.
\(2 (67) = 134\).
time = 0.63, size = 350, normalized size = 4.43 \begin {gather*} \frac {2 \, {\left (\frac {2 \, {\left ({\left (3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (6 \, d x + 6 \, c\right ) + 3 \, {\left (3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (4 \, d x + 4 \, c\right ) - 3 \, \cos \left (6 \, d x + 6 \, c\right ) \sin \left (2 \, d x + 2 \, c\right ) - 9 \, \cos \left (4 \, d x + 4 \, c\right ) \sin \left (2 \, d x + 2 \, c\right )\right )} A \sqrt {b}}{2 \, {\left (3 \, \cos \left (4 \, d x + 4 \, c\right ) + 3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \cos \left (6 \, d x + 6 \, c\right ) + \cos \left (6 \, d x + 6 \, c\right )^{2} + 6 \, {\left (3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \cos \left (4 \, d x + 4 \, c\right ) + 9 \, \cos \left (4 \, d x + 4 \, c\right )^{2} + 9 \, \cos \left (2 \, d x + 2 \, c\right )^{2} + 6 \, {\left (\sin \left (4 \, d x + 4 \, c\right ) + \sin \left (2 \, d x + 2 \, c\right )\right )} \sin \left (6 \, d x + 6 \, c\right ) + \sin \left (6 \, d x + 6 \, c\right )^{2} + 9 \, \sin \left (4 \, d x + 4 \, c\right )^{2} + 18 \, \sin \left (4 \, d x + 4 \, c\right ) \sin \left (2 \, d x + 2 \, c\right ) + 9 \, \sin \left (2 \, d x + 2 \, c\right )^{2} + 6 \, \cos \left (2 \, d x + 2 \, c\right ) + 1} + \frac {3 \, C \sqrt {b} \sin \left (2 \, d x + 2 \, c\right )}{\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1}\right )}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 47, normalized size = 0.59 \begin {gather*} \frac {{\left ({\left (2 \, A + 3 \, C\right )} \cos \left (d x + c\right )^{2} + A\right )} \sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{3 \, d \cos \left (d x + c\right )^{\frac {7}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.32, size = 217, normalized size = 2.75 \begin {gather*} \frac {\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (18\,A\,\sin \left (2\,c+2\,d\,x\right )+12\,A\,\sin \left (4\,c+4\,d\,x\right )+2\,A\,\sin \left (6\,c+6\,d\,x\right )+15\,C\,\sin \left (2\,c+2\,d\,x\right )+12\,C\,\sin \left (4\,c+4\,d\,x\right )+3\,C\,\sin \left (6\,c+6\,d\,x\right )+A\,20{}\mathrm {i}+C\,30{}\mathrm {i}+A\,\cos \left (2\,c+2\,d\,x\right )\,30{}\mathrm {i}+A\,\cos \left (4\,c+4\,d\,x\right )\,12{}\mathrm {i}+A\,\cos \left (6\,c+6\,d\,x\right )\,2{}\mathrm {i}+C\,\cos \left (2\,c+2\,d\,x\right )\,45{}\mathrm {i}+C\,\cos \left (4\,c+4\,d\,x\right )\,18{}\mathrm {i}+C\,\cos \left (6\,c+6\,d\,x\right )\,3{}\mathrm {i}\right )}{3\,d\,\sqrt {\cos \left (c+d\,x\right )}\,\left (15\,\cos \left (2\,c+2\,d\,x\right )+6\,\cos \left (4\,c+4\,d\,x\right )+\cos \left (6\,c+6\,d\,x\right )+10\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________